package com.victor.dao;

import org.apache.ibatis.annotations.Mapper;

import com.victor.entity.TravelPraise;
@Mapper
public interface TravelPraiseDao {
	/**
	 * 删除
	 * @param id
	 * @return
	 */
    boolean deleteByPrimaryKey(Integer id);
    /**
     * 添加
     * @param record
     * @return
     */
    boolean insertSelective(TravelPraise record);

    TravelPraise selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TravelPraise record);

    int updateByPrimaryKey(TravelPraise record);
    /**
     * 查询是否点赞游记
     * @param travelPraise
     * @return
     */
	TravelPraise selByUidAndTravelId(TravelPraise travelPraise);
	/**
	 * 查询点赞次数
	 * @param travelid
	 * @return
	 */
	String selCountPraise(String travelid);
}